package test04;


import java.util.ArrayList;

public class StudentManager {
    private ArrayList<Student> students = new ArrayList<>();
    Impl op = new OperateImpl1();
    public StudentManager(){
        students.add(new Student("张三","男",88.6));
        students.add(new Student("张三","男",60));
        students.add(new Student("张三","女",100));
        students.add(new Student("张三","男",88));
        students.add(new Student("张三","男",77));
        students.add(new Student("张三","女",30));
        students.add(new Student("张三","男",55));
    }

    void showAll(){
        op.showAll(students);
    }

    void showEverage(){
        op.showEverage(students);
    }
}
